﻿using System.ComponentModel;

namespace Neudesic.ComponentModel
{
    /// <summary>
    /// Inherited class to provide clearer purpose for enum search result node descriptions.
    /// </summary>
    /// <remarks>
    /// Defines the string literal found in the result set that defines the root of the serialized type.
    /// </remarks>
    public sealed class SearchResultNodeAttribute : DescriptionAttribute
    {

        /// <summary>
        /// Initializes a new instance of the <see cref="SearchTermAttribute" /> class.
        /// </summary>
        public SearchResultNodeAttribute()
            : base()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SearchTermAttribute" /> class.
        /// </summary>
        /// <param name="searchTerm">The search term.</param>
        public SearchResultNodeAttribute(string searchTerm)
            : base(searchTerm)
        {
        }

    }

}
